<%@ page contentType="text/html;charset=UTF-8" errorPage="errorhandle.jsp" %>
<%
    // 获取姓名参数
    String name = request.getParameter("name");
    if (name == null || name.trim().isEmpty()) {
        name = "用户";
    } else {
        // URL解码
        name = java.net.URLDecoder.decode(name, "UTF-8");
    }
%>
<html>
<head>
    <title>欢迎页面</title>
</head>
<body>
<p><%= name %>你好，欢迎光临游戏室！</p>

<hr>
<%@ include file="link.jsp" %>
</body>
</html>